Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #21 #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Fixed #21 #23

wants to merge 5 commits into from

Conversation

ahmedkamalio
Copy link
Contributor

@ahmedkamalio ahmedkamalio commented Mar 10, 2019

As lschuft mentioned it's not a good approach to meth the component's props, instead the listenOrientationChange may return the original handler, store it somewhere and push it back to removeOrientationListener

Copy link
Owner

@marudy marudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @AhmedMKamal thanks again for the PR. In this PR you have some changes that are now merged to master. Can you merge master to this branch to eliminate them and me have a second review? Also added a few comments. Cheers bud

@ahmedkamalio
Copy link
Contributor Author

Hey, @marudy your comments have been resolved, but I can't sync this brunch with you updated master brunch I think I have to reopen new PR or just merge this one as is.

Dimensions.removeEventListener('change', () => {});
const removeOrientationListener = orientationChangeHandler => {
// Warn if the original handler not passed.
if (orientationChangeHandler) {
Copy link

@dikamilio dikamilio Aug 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be oposite condition -> if (!orientationChangeHandler) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants